﻿using CarterWechatServer.BizLogic.Dish;
using CarterWechatServer.BizModel.Dish;
using CarterWechatServer.Util.Result;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace CarterWechatServer.WebApi.Controllers
{
    public class DishController : ApiController
    {
        private DishService _dishService;

        /// <summary>
        /// 构造方法
        /// </summary>
        public DishController()
        {
            _dishService = new DishService();
        }

        #region 菜品列表
        /// <summary>
        /// 菜品列表
        /// </summary>
        /// <returns></returns>
        public DataResult<List<DishOutput>> Get()
        {
            List<DishOutput> outputs = _dishService.Dish();

            return new DataResult<List<DishOutput>>(outputs);
        }

        #endregion
    }
}
